package com.yc.game.dao;

import com.yc.game.pojo.Money;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MoneyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Money record);

    int insertSelective(Money record);

    Money selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Money record);

    int updateByPrimaryKey(Money record);

    Money getByEmail(String email);

    void updateByEmail(@Param("email") String email, @Param("newMoney") double newMoney);
}